import Department.*;
import Employee.EmployeeList;
import Employee.FulltimeEmployee;
import Employee.ParttimeEmployee;

public class Main {
    public static void main(String[] args) {
        EmployeeList fullTimeEmployeeList = new EmployeeList();
        fullTimeEmployeeList.addEmployee(new FulltimeEmployee("张三",5000,45));
        fullTimeEmployeeList.addEmployee(new FulltimeEmployee("李四",4000,36));
        fullTimeEmployeeList.addEmployee(new FulltimeEmployee("王五",5000,56));
        Department faDepartment = new FADepartment();
        Department hrDepartment = new HRDepartment();
        System.out.println("财务部门汇报");
        fullTimeEmployeeList.accept(faDepartment);
        System.out.println("人力资源部汇报");
        fullTimeEmployeeList.accept(hrDepartment);
        EmployeeList partTimeEmployeeList = new EmployeeList();
        partTimeEmployeeList.addEmployee(new ParttimeEmployee("赵六",100,72));
        partTimeEmployeeList.addEmployee(new ParttimeEmployee("刘七",80,60));
        System.out.println("财务部门汇报");
        partTimeEmployeeList.accept(faDepartment);
        System.out.println("人力资源部汇报");
        partTimeEmployeeList.accept(hrDepartment);
    }
}